﻿using Basic.OARemoteModel.FillInItem;
using Basic.OAService.Interface;
using WeDonekRpc.Client;
using WeDonekRpc.Client.Interface;

namespace Basic.OAService.RpcEvent
{
    internal class FillInItemEvent : IRpcApiService
    {
        private readonly IFillInItemService _Service;

        public FillInItemEvent ( IFillInItemService service )
        {
            this._Service = service;
        }
        public void DeleteFillInEmp ( DeleteFillInEmp obj )
        {
            this._Service.Delete(obj.FillInId, obj.EmpId);
        }
        public PagingResult<long> QueryFillInEmp ( QueryFillInEmp obj )
        {
            return this._Service.Query(obj.Query, obj.ToBasicPage());
        }
        public void SyncFillInEmp ( SyncFillInEmp obj )
        {
            this._Service.Sync(obj.FillInId, obj.Emps);
        }
    }
}
